CPRE := @
ifeq ($(V),1)
CPRE :=
VERB := --verbose
endif

BOARD_BOOTIMG_PATH:=../../boards/csky/cb5631/bootimgs

.PHONY:startup
startup: all

all:
	$(CPRE) scons $(VERB) -j4
	@echo YoC SDK Done

	@echo [INFO] Create bin files
	$(CPRE) mv lpm $(BOARD_BOOTIMG_PATH)
	$(CPRE) mv lpm.elf $(BOARD_BOOTIMG_PATH)

sdk:
	$(CPRE) yoc sdk
.PHONY:clean
clean:
	$(CPRE) rm yoc_sdk -rf
	$(CPRE) scons -c
	$(CPRE) find . -name "*.[od]" -delete
